import axios from "@/api/http";
// @ts-ignore
import qs from 'qs'

const list = (params: any = {}) => {
    return axios.post('/chat/notice/list', params)
}
const create = (params: any = {}) => {
    return axios.post('/chat/notice/create', params)
}
const update = (params: any = {}) => {
    return axios.post('/chat/notice/update', params)
}
const publish = (params: any = {}) => {
    return axios.post('/chat/notice/publish', qs.stringify(params))
}
const revoke = (params: any = {}) => {
    return axios.post('/chat/notice/revoke', qs.stringify(params))
}

export default {
    list,
    create,
    update,
    publish,
    revoke,
}
